const { Sequelize: Seq} = require('sequelize');

const seq = new Seq('course-sys', 'root', 'root', {
    host: 'localhost',
    dialect: 'mysql',   // 方言
    pool: {max: 5, min: 0, idle: 10000},
    define: {freezeTableName: true}
});

seq.authenticate().then(() => {
    console.log('successfully')
})

module.exports = seq